
{extend name="index/admin-index" /}
{block name="main"}

  <link rel="stylesheet" href="/public/static/assets/css/bootstrap.css">
  <script src="/public/static/assets/js/jquery.min.js"></script>
  <!-- content start -->
  <div class="admin-content">
    <div class="admin-content-body">
      <div class="am-cf am-padding am-padding-bottom-0">
        <div class="am-fl am-cf"><strong class="am-text-primary am-text-lg">明星添加</strong> / <small>star addition</small></div>
      </div>

      <hr/>

      <div style="margin-left:100px">

        


    <div class="form-group has-success has-feedback">


    <strong class="am-text-primary am-text-lg">选择用户 : &nbsp</strong><br><br>
    <select name="" id="">
      <option value="">请选择</option>
      <option value="">小溪</option>
      <option value="">小草</option>
    </select>
  
    <!-- <input type="submit" class="btn btn-info " style='float:right;'> -->
    
    </div>
    </form>
    </div>
    <script>
        $('#add').click(function(){
          var info1 = $('input[name="status"]:checked').val(); 
          var info = $('#Success').val();
          // console.log(info1);
          $.ajax({
            type:'post',
            url:"{:url('admin/Star/add')}",
            data:{
              'content':info,
              'status':info1,
            },
                
            
            success:function(d){
                if(d == 'ok'){
                    alert('添加成功');
                    window.location="{:url('admin/Star/index')}";
                }else if(d == 'no'){
                    alert('添加失败');
                }
                // console.log(d);
            }
          })
        })
</script>
{/block}